
public class TransportPersones extends Transport{
	public int NumPersones;
	public static int Limit_Persones_TRANS_Colectiu=9;
	public static double Extra_Per_Hora_Colectiu=1;
	public static double Extra_Per_Hora=0.5;
	public double preu;
	//Constructori calcula preu
	public TransportPersones(double hores, int NumPersones, String dni){
		super(hores,dni);
		this.NumPersones=NumPersones;
		if (NumPersones<9) this.preu=(hores*0.5)+(super.Preu());
		else this.preu=(hores*1)+(super.Preu());
	}

}
